<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            /* 弹性布局 */
            display: flex;
            /* 默认不写就是这横向从左到右(一般用这个)主轴就是横排    row-remove翻转排从右到左 */
            /* flex-direction: row; */
            /* 这是竖排从上到下(一般用这个)主轴就是竖排     column-remove翻转排从下到上*/
            /* flex-direction: column; */
            width: 60%;
            height: 300px;
            background-color: pink;

            
        } 
        span{
            width: 200px;
            height: 100px;
            background-color: brown;
        }
    </style>
</head>
<body>
    <div>
        <span>1</span>
        <span>2</span>
        <span>3</span>
    </div>
</body>
</html>